import http from '../https'
// const baseURL = "http://192.168.1.122:8080"
const baseURL = "http://82.157.143.31:8080"

// 初始化患者跟进列表
const initPatientsFollowTable = (obj) => http({
    url: `${baseURL}/customer/followInitializeFind`,
    method: 'get',
    params: {
        ...obj
    }
})

// 初始化患者跟进增加和删除的下拉列表(电话、新跟进)
const initPatientsTableFollowAdd = () => http({
    url: `${baseURL}/customer/followInitializeAddUpdate`,
    method: 'get',
})

// 患者跟进--新增
const PatientsTableFollowAdd = (obj) => http({
    url: `${baseURL}/customer/followAdd`,
    method: 'post',
    data: {
        ...obj
    }
})

// 患者跟进--修改
const PatientsTableFollowModify = (obj) => http({
    url: `${baseURL}/customer/followUpdate`,
    method: 'post',
    data: {
        ...obj
    }
})

// 患者跟进--删除
const PatientsFollowTableDelete = (obj) => http({
    url: `${baseURL}/customer/followDelete`,
    method: 'post',
    data: {
        ...obj
    }
})

export {
    initPatientsFollowTable,
    initPatientsTableFollowAdd,
    PatientsTableFollowAdd,
    PatientsTableFollowModify,
    PatientsFollowTableDelete
}